package pers.cz.service;

import pers.cz.model.NotifyMessage;

import java.util.Date;
import java.util.List;

public interface MessageService {

    public List<NotifyMessage> queryAllNotifyMessage(Integer userId, Integer pageStart, Integer pageLimit);

    public List<NotifyMessage> queryAllNotifyMessageByType(Integer userId, String type, Integer pageStart, Integer pageLimit);

    public List<NotifyMessage> queryAllNotifyMessageByMessageType(Integer userId, String messageType, Integer pageStart, Integer pageLimit);

    public List<NotifyMessage> queryNotifyMessagetByCondition(Integer userId, String messageType, Integer pageStart, Integer pageLimit, String type, Date startDate, Date endDate, String theme);

    public Integer updateNotifyMessageType(Integer userId, Integer id, String type);

    public Integer updateNotifyMessageMessageType(Integer userId, Integer id, String messageType);

    public Integer deleteMessageById(int id);

    public Integer quertNotifyMessageCount(int userId, String type);

    public Integer updateNotifyMessageTypeAll(Integer userId, String type);
}
